package entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * The type Storehouse.
 */
public class Storehouse extends Common implements Serializable {
    private static final long serialVersionUID = -69316777778498201L;
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;
    /**
     * 仓库名称
     */
    private String name;

    /**
     * 仓库类型，1为总仓，2为区域仓
     */
    private Integer type;
    /**
     * 地址
     */
    private String address;
    /**
     * 负责人id
     */
    @TableField(value = "chargeuserId")
    private String chargeuserId;
    /**
     * 路线id
     */
    @TableField(value = "routeId")
    private Object routeId;
    /**
     * 父id
     */
    @TableField(value = "parentId")
    private String parentId;

    /**
     * To string string.
     *
     * @return the string
     */
    @Override
    public String toString() {
        return "Storehouse{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", type=" + type +
                ", address='" + address + '\'' +
                ", chargeuserId='" + chargeuserId + '\'' +
                ", routeId=" + routeId +
                ", parentId='" + parentId + '\'' +
                '}';
    }

    /**
     * Instantiates a new Storehouse.
     *
     * @param id           the id
     * @param name         the name
     * @param type         the type
     * @param address      the address
     * @param chargeuserId the chargeuser id
     * @param routeId      the route id
     * @param parentId     the parent id
     * @author overlook
     * @date 2022 -04-16 20:32:38
     */
    public Storehouse(String id, String name, Integer type, String address, String chargeuserId, Object routeId, String parentId) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.address = address;
        this.chargeuserId = chargeuserId;
        this.routeId = routeId;
        this.parentId = parentId;
    }

    /**
     * Instantiates a new Storehouse.
     *
     * @author overlook
     * @date 2022 -04-16 20:32:38
     */
    public Storehouse() {
    }
}

